<?php
if($_SESSION["guser_preferences"]["language"])
	{
	$lang="_".substr($_SESSION["guser_preferences"]["language"],0,2);
	if($lang=="_en")
		$lang="";
	}
else
	$lang="";

$acc_bill_details_101="acc_bill_details_101";
$acc_bill_details_106="acc_bill_details_106";
$acc_bill_details_117="acc_bill_details_117";
$acc_bill_details_125="acc_bill_details_125";
$acc_bill_details="acc_bill_details";
$acc_bill_items_101="acc_bill_items_101";
$acc_bill_items_106="acc_bill_items_106";
$acc_bill_items_117="acc_bill_items_117";
$acc_bill_items_125="acc_bill_items_125";
$acc_bill_items_tax_101="acc_bill_items_tax_101";
$acc_bill_items_tax_106="acc_bill_items_tax_106";
$acc_bill_items_tax_117="acc_bill_items_tax_117";
$acc_bill_items_tax_125="acc_bill_items_tax_125";
$acc_bill_items_tax="acc_bill_items_tax";
$acc_bill_items="acc_bill_items";
$acc_bill_payment_101="acc_bill_payment_101";
$acc_bill_payment_106="acc_bill_payment_106";
$acc_bill_payment_117="acc_bill_payment_117";
$acc_bill_payment_125="acc_bill_payment_125";
$acc_bill_payment_relation_101="acc_bill_payment_relation_101";
$acc_bill_payment_relation_106="acc_bill_payment_relation_106";
$acc_bill_payment_relation_117="acc_bill_payment_relation_117";
$acc_bill_payment_relation_125="acc_bill_payment_relation_125";
$acc_bill_payment_relation="acc_bill_payment_relation";
$acc_bill_payment="acc_bill_payment";
$acc_bill_tax_101="acc_bill_tax_101";
$acc_bill_tax_106="acc_bill_tax_106";
$acc_bill_tax_117="acc_bill_tax_117";
$acc_bill_tax_125="acc_bill_tax_125";
$acc_bill_tax="acc_bill_tax";
$acc_invoice_details_106="acc_invoice_details_106";
$acc_invoice_details="acc_invoice_details";
$acc_invoice_item_tax_106="acc_invoice_item_tax_106";
$acc_invoice_item_tax="acc_invoice_item_tax";
$acc_invoice_items_106="acc_invoice_items_106";
$acc_invoice_items="acc_invoice_items";
$acc_invoice_payment_106="acc_invoice_payment_106";
$acc_invoice_payment_relation_106="acc_invoice_payment_relation_106";
$acc_invoice_payment_relation="acc_invoice_payment_relation";
$acc_invoice_payment="acc_invoice_payment";
$acc_invoice_tax_106="acc_invoice_tax_106";
$acc_invoice_tax="acc_invoice_tax";
$batch_chemical_details_10="batch_chemical_details_10";
$batch_chemical_details_20="batch_chemical_details_20";
$batch_chemical_details_30="batch_chemical_details_30";
$batch_chemical_details_35="batch_chemical_details_35";
$batch_chemical_details_40="batch_chemical_details_40";
$batch_chemical_details="batch_chemical_details";
$batch_chemical_stock_relation_10="batch_chemical_stock_relation_10";
$batch_chemical_stock_relation_20="batch_chemical_stock_relation_20";
$batch_chemical_stock_relation_30="batch_chemical_stock_relation_30";
$batch_chemical_stock_relation_35="batch_chemical_stock_relation_35";
$batch_chemical_stock_relation_40="batch_chemical_stock_relation_40";
$batch_chemical_stock_relation="batch_chemical_stock_relation";
$batch_machine_cost="batch_machine_cost";
$batch_process_details="batch_process_details";
$batch_production_planning_view="batch_production_planning_view";
$batch_status_details_view="batch_status_details_view";
$batch_status_details="batch_status_details";
$batch_status_stock="batch_status_stock";
$chemical_operation_relation_101="chemical_operation_relation_101";
$chemical_operation_relation_106="chemical_operation_relation_106";
$chemical_planning_view="chemical_planning_view";
$contact_details="contact_details";
$delivery_details_pur_101="delivery_details_pur_101";
$delivery_details_pur_106="delivery_details_pur_106";
$delivery_details_pur_117="delivery_details_pur_117";
$delivery_details_pur_125="delivery_details_pur_125";
$delivery_details="delivery_details";
$delivery_performance_view="delivery_performance_view";
$forum_comments="forum_comments";
$forum_moderations="forum_moderations";
$forum_stories="forum_stories";
$forum_submissions="forum_submissions";
$forum_topics="forum_topics";
$forum_users="forum_users";
$invoice_details="invoice_details";
$invoice_duty_details_106="invoice_duty_details_106";
$invoice_particulars_106="invoice_particulars_106";
$invoice_payment_details="invoice_payment_details";
$leather_stock_order_ref="leather_stock_order_ref";
$leather_stock_outgoing="leather_stock_outgoing";
$leather_stock_price="leather_stock_price";
$leather_stock_type="leather_stock_type";
$leather_stock="leather_stock";
$master_account="master_account";
$master_activity="master_activity";
$master_animal="master_animal$lang";
$master_brand="master_brand";
$master_chemical_type="master_chemical_type$lang";
$master_city="master_city";
$master_colour="master_colour";
$master_column_mapping="master_column_mapping";
$master_cost_type="master_cost_type";
$master_country="master_country$lang";
$master_currency="master_currency$lang";
$master_language="master_language";
$master_member="master_member";
$master_order_type="master_order_type$lang";
$master_origin="master_origin";
$master_payment_mode="master_payment_mode$lang";
$master_payment_term="master_payment_term$lang";
$master_preferences="master_preferences";
$master_privilege="master_privilege";
$master_process="master_process";
$master_product_101="master_product_101";
$master_product_117="master_product_117";
$master_product_118="master_product_118";
$master_product_125="master_product_125";
$master_product_category="master_product_category$lang";
$master_product_type_125="master_product_type_125$lang";
$master_product="master_product";
$master_production_gate_101="master_production_gate_101";
$master_production_gate="master_production_gate";
$master_production_section="master_section$lang";
$master_receipt_gate="master_receipt_gate$lang";
$master_receipt_type="master_receipt_type$lang";
$master_recipe_10="master_recipe_10";
$master_recipe_101="master_recipe_101";
$master_recipe_106="master_recipe_106";
$master_recipe_20="master_recipe_20";
$master_recipe_30="master_recipe_30";
$master_recipe_35="master_recipe_35";
$master_recipe_40="master_recipe_40";
$master_recipe="master_recipe";
$master_rejection_type="master_rejection_type$lang";
$master_rejections="master_rejections";
$master_report_customization="master_report_customization$lang";
$master_report="master_report$lang";
$master_sample_gate="master_sample_gate";
$master_shipment_gate="master_shipment_gate$lang";
$master_shipment_mode="master_shipment_mode$lang";
$master_shipment_term="master_shipment_term$lang";
$master_shipment_type="master_shipment_type$lang";
$master_size="master_size";
$master_stock_category="master_stock_category$lang";
$master_stock_reference_type="master_stock_reference_type";
$master_tax_type="master_tax_type$lang";
$master_tax="master_tax";
$master_thickness="master_thickness";
$master_uom_type="master_uom_type$lang";
$master_uom="master_uom$lang";
$master_user_type="master_user_type$lang";
$master_user="master_user";
$master_zone_tax="master_zone_tax";
$master_zone="master_zone";
$member_account_details="member_account_details";
$member_commercial_details="member_commercial_details";
$member_contact_details="member_contact_details";
$member_financial_details="member_financial_details";
$member_info="member_info";
$member_preferences="member_preferences";
$member_product_details="member_product_details";
$member_user_relation="member_user_relation";
$message_details="message_details";
$non_working_days="non_working_days";
$operation_machine_cost_101="operation_machine_cost_101";
$operation_machine_cost_106="operation_machine_cost_106";
$operation_machine_relation_101="operation_machine_relation_101";
$operation_machine_relation_106="operation_machine_relation_106";
$order_details_batches="order_details_batches";
$order_details_delivery="order_details_delivery";
$order_details_feedback="order_details_feedback";
$order_details_items_101="order_details_items_101";
$order_details_items="order_details_items";
$order_details_price="order_details_price";
$order_details_shipments="order_details_shipments";
$order_details="order_details";
$order_issues_view="order_issues_view";
$order_items_delivery_pur_101="order_items_delivery_pur_101";
$order_items_delivery_pur_106="order_items_delivery_pur_106";
$order_items_delivery_pur_117="order_items_delivery_pur_117";
$order_items_delivery_pur_125="order_items_delivery_pur_125";
$order_items_price_pur_101="order_items_price_pur_101";
$order_items_price_pur_106="order_items_price_pur_106";
$order_items_price_pur_117="order_items_price_pur_117";
$order_items_price_pur_125="order_items_price_pur_125";
$order_items_pur_101="order_items_pur_101";
$order_items_pur_106="order_items_pur_106";
$order_items_pur_117="order_items_pur_117";
$order_items_pur_125="order_items_pur_125";
$order_items_pur="order_items_pur";
$order_material_101="order_material_101";
$order_material_106="order_material_106";
$order_material_117="order_material_117";
$order_status_batches="order_status_batches";
$overheads="overheads";
$packing_item_relation="packing_item_relation";
$prd_106_order_details="prd_106_order_details";
$prd_106_sales_order_relation="prd_106_sales_order_relation";
$prd_batch_planning="prd_batch_planning";
$prd_master_operation="prd_master_operation";
$prd_operation_capacity="prd_operation_capacity";
$prd_operation_cost="prd_operation_cost";
$prd_operation_gate_sequence="prd_operation_gate_sequence";
$prd_product_operation_relation="prd_product_operation_relation";
$prd_status_operation_costing="prd_status_operation_costing";
$process_recipe_relation_10="process_recipe_relation_10";
$process_recipe_relation_20="process_recipe_relation_20";
$process_recipe_relation_30="process_recipe_relation_30";
$process_recipe_relation_35="process_recipe_relation_35";
$process_recipe_relation_40="process_recipe_relation_40";
$process_recipe_relation="process_recipe_relation";
$product_process_relation="product_process_relation";
$product_reorder_level_101="product_reorder_level_101";
$product_reorder_level_106="product_reorder_level_106";
$product_reorder_level_117="product_reorder_level_117";
$product_reorder_level="product_reorder_level";
$product_section_relation_117="product_section_relation_117";
$product_value_101="product_value_101";
$product_value_106="product_value_106";
$product_value_117="product_value_117";
$production_gate_sequence_106="production_gate_sequence_106";
$purchase_sales_relation_101="purchase_sales_relation_101";
$purchase_sales_relation_106="purchase_sales_relation_106";
$purchase_sales_relation_117="purchase_sales_relation_117";
$purchase_sales_relation_125="purchase_sales_relation_125";
//$receipt_details_101_view="receipt_details_101_view";
$receipt_details_101="receipt_details_101";
$receipt_details_106="receipt_details_106";
$receipt_details_117="receipt_details_117";
$receipt_details_125="receipt_details_125";
$receipt_details="receipt_details";
$receipt_item_details_101="receipt_item_details_101";
$receipt_item_details_106="receipt_item_details_106";
$receipt_item_details_117="receipt_item_details_117";
$receipt_item_details_125="receipt_item_details_125";
$receipt_item_details="receipt_item_details";
$receipt_item_price_101="receipt_item_price_101";
$receipt_item_price_106="receipt_item_price_106";
$receipt_item_price_117="receipt_item_price_117";
$receipt_item_price_125="receipt_item_price_125";
$receipt_item_price="receipt_item_price";
$receipt_status_101="receipt_status_101";
$receipt_status_106="receipt_status_106";
$receipt_status_117="receipt_status_117";
$receipt_status_125="receipt_status_125";
$receipt_status="receipt_status";
$recipe_chemical_relation_10="recipe_chemical_relation_10";
$recipe_chemical_relation_101="recipe_chemical_relation_101";
$recipe_chemical_relation_106="recipe_chemical_relation_106";
$recipe_chemical_relation_20="recipe_chemical_relation_20";
$recipe_chemical_relation_30="recipe_chemical_relation_30";
$recipe_chemical_relation_35="recipe_chemical_relation_35";
$recipe_chemical_relation_40="recipe_chemical_relation_40";
$recipe_chemical_relation="recipe_chemical_relation";
$recipe_time_10="recipe_time_10";
$recipe_time_20="recipe_time_20";
$recipe_time_30="recipe_time_30";
$recipe_time_35="recipe_time_35";
$recipe_time_40="recipe_time_40";
$recipe_time="recipe_time";
$rejection_details_101="rejection_details_101";
$rejection_details_106="rejection_details_106";
$rejection_details_117="rejection_details_117";
$rejection_details="rejection_details";
$rejection_report_view="rejection_report_view";
$relationships="relationships";
$sample_details="sample_details";
$sample_product_details="sample_product_details";
$sample_status="sample_status";
$schedule="schedule";
$shipment_details_view="shipment_details_view";
$shipment_details="shipment_details";
$shipment_items_price="shipment_items_price";
$shipment_items="shipment_items";
$shipment_packing="shipment_packing";
$shipment_pack_stock="shipment_pack_stock";
$shipment_status="shipment_status";
$stk_details_meta_101="stk_details_meta_101";
$stk_details_meta_106="stk_details_meta_106";
$stk_details_meta_117="stk_details_meta_117";
$stk_details_meta_125="stk_details_meta_125";
$stk_details_meta="stk_details_meta";
$stk_physical_101="stk_physical_101";
$stk_physical_106="stk_physical_106";
$stk_physical_117="stk_physical_117";
$stk_physical_125="stk_physical_125";
$stk_physical_products_101="stk_physical_products_101";
$stk_physical_products_106="stk_physical_products_106";
$stk_physical_products_117="stk_physical_products_117";
$stk_physical_products_125="stk_physical_products_125";
$stk_physical_products="stk_physical_products";
$stk_physical="stk_physical";
$stock_details_101="stock_details_101";
$stock_details_106="stock_details_106";
$stock_details_117="stock_details_117";
$stock_details_125="stock_details_125";
$stock_details="stock_details";
$stock_price="stock_price";
$stock_transaction_detail_101="stock_transaction_detail_101";
$stock_transaction_detail_106="stock_transaction_detail_106";
$stock_transaction_detail_117="stock_transaction_detail_117";
$stock_transaction_detail_125="stock_transaction_detail_125";
$stock_transaction_detail="stock_transaction_detail";
$stk_meta_product_balance_101="stk_meta_product_balance_101";
$stock_type="stock_type$lang";
$sys_master_module="sys_master_module";
$transaction_value="transaction_value";
$user_info="user_info";
$user_preferences="user_preferences";
$user_type_privilege="user_type_privilege";
$weblog="weblog";



//TABLES
$acc_bill_details_101_table ="acc_bill_details_101";
$acc_bill_details_106_table ="acc_bill_details_106";
$acc_bill_details_117_table ="acc_bill_details_117";
$acc_bill_details_125_table ="acc_bill_details_125";
$acc_bill_details_table ="acc_bill_details";
$acc_bill_items_101_table ="acc_bill_items_101";
$acc_bill_items_106_table ="acc_bill_items_106";
$acc_bill_items_117_table ="acc_bill_items_117";
$acc_bill_items_125_table ="acc_bill_items_125";
$acc_bill_items_table ="acc_bill_items";
$acc_bill_items_tax_101_table ="acc_bill_items_tax_101";
$acc_bill_items_tax_106_table ="acc_bill_items_tax_106";
$acc_bill_items_tax_117_table ="acc_bill_items_tax_117";
$acc_bill_items_tax_125_table ="acc_bill_items_tax_125";
$acc_bill_items_tax_table ="acc_bill_items_tax";
$acc_bill_payment_101_table ="acc_bill_payment_101";
$acc_bill_payment_106_table ="acc_bill_payment_106";
$acc_bill_payment_117_table ="acc_bill_payment_117";
$acc_bill_payment_125_table ="acc_bill_payment_125";
$acc_bill_payment_relation_101_table ="acc_bill_payment_relation_101";
$acc_bill_payment_relation_106_table ="acc_bill_payment_relation_106";
$acc_bill_payment_relation_117_table ="acc_bill_payment_relation_117";
$acc_bill_payment_relation_125_table ="acc_bill_payment_relation_125";
$acc_bill_payment_relation_table ="acc_bill_payment_relation";
$acc_bill_payment_table ="acc_bill_payment";
$acc_bill_tax_101_table ="acc_bill_tax_101";
$acc_bill_tax_106_table ="acc_bill_tax_106";
$acc_bill_tax_117_table ="acc_bill_tax_117";
$acc_bill_tax_125_table ="acc_bill_tax_125";
$acc_bill_tax_table ="acc_bill_tax";
$acc_invoice_details_106_table ="acc_invoice_details_106";
$acc_invoice_details_table ="acc_invoice_details";
$acc_invoice_item_tax_106_table ="acc_invoice_item_tax_106";
$acc_invoice_item_tax_table ="acc_invoice_item_tax";
$acc_invoice_items_106_table ="acc_invoice_items_106";
$acc_invoice_items_table ="acc_invoice_items";
$acc_invoice_payment_106_table ="acc_invoice_payment_106";
$acc_invoice_payment_relation_106_table ="acc_invoice_payment_relation_106";
$acc_invoice_payment_relation_table ="acc_invoice_payment_relation";
$acc_invoice_payment_table ="acc_invoice_payment";
$acc_invoice_tax_106_table ="acc_invoice_tax_106";
$acc_invoice_tax_table ="acc_invoice_tax";
$batch_chemical_details_10_table ="batch_chemical_details_10";
$batch_chemical_details_20_table ="batch_chemical_details_20";
$batch_chemical_details_30_table ="batch_chemical_details_30";
$batch_chemical_details_35_table ="batch_chemical_details_35";
$batch_chemical_details_40_table ="batch_chemical_details_40";
$batch_chemical_details_table ="batch_chemical_details";
$batch_chemical_stock_relation_10_table ="batch_chemical_stock_relation_10";
$batch_chemical_stock_relation_20_table ="batch_chemical_stock_relation_20";
$batch_chemical_stock_relation_30_table ="batch_chemical_stock_relation_30";
$batch_chemical_stock_relation_35_table ="batch_chemical_stock_relation_35";
$batch_chemical_stock_relation_40_table ="batch_chemical_stock_relation_40";
$batch_chemical_stock_relation_table ="batch_chemical_stock_relation";
$batch_machine_cost_table ="batch_machine_cost";
$batch_process_details_table ="batch_process_details";
$batch_status_details_table ="batch_status_details";
$batch_status_stock_table ="batch_status_stock";
$chemical_operation_relation_101_table ="chemical_operation_relation_101";
$chemical_operation_relation_106_table ="chemical_operation_relation_106";
$contact_details_table ="contact_details";
$delivery_details_pur_table ="delivery_details_pur";
$delivery_details_pur_101_table ="delivery_details_pur_101";
$delivery_details_pur_106_table ="delivery_details_pur_106";
$delivery_details_pur_117_table ="delivery_details_pur_117";
$delivery_details_pur_125_table ="delivery_details_pur_125";
$delivery_details_table ="delivery_details";
$delivery_id_sequence="delivery_id_seq";
$form_customization_table="form_customization";
$forum_comments_table ="forum_comments";
$forum_moderations_table ="forum_moderations";
$forum_stories_table ="forum_stories";
$forum_submissions_table ="forum_submissions";
$forum_topics_table ="forum_topics";
$forum_users_table ="forum_users";
$invoice_details_table ="invoice_details";
$invoice_duty_details_106_table ="invoice_duty_details_106";
$invoice_particulars_106_table ="invoice_particulars_106";
$invoice_payment_details_table ="invoice_payment_details";
$leather_stock_order_ref_table ="leather_stock_order_ref";
$leather_stock_outgoing_table ="leather_stock_outgoing";
$leather_stock_price_table ="leather_stock_price";
$leather_stock_table ="leather_stock";
$leather_stock_type_table ="leather_stock_type";
$master_account_table ="master_account";
$master_activity_table ="master_activity";
$master_animal_table ="master_animal$lang";
$master_brand_table ="master_brand";
$master_chemical_type_table ="master_chemical_type$lang";
$master_city_table ="master_city";
$master_colour_table ="master_colour";
$master_column_mapping_table ="master_column_mapping";
$master_cost_type_table="master_cost_type";
$master_country_table ="master_country$lang";
$master_currency_table ="master_currency$lang";
$master_grade_group_table="master_grade_group";
$master_language_table ="master_language";
$master_machine_part_table = "master_machine_part";
$master_machine_type_table = "master_machine_type";
$master_member_table ="master_member";
$master_order_type_table ="master_order_type$lang";
$master_origin_table ="master_origin";
$master_page_customization_table="master_page_customization$lang";
$master_payment_mode_table ="master_payment_mode$lang";
$master_payment_term_table ="master_payment_term$lang";
$master_preferences_table ="master_preferences";
$master_privilege_table ="master_privilege";
$master_process_table ="master_process";
$master_product_101_table ="master_product_101";
$master_product_117_table ="master_product_117";
$master_product_118_table ="master_product_118";
$master_product_125_table ="master_product_125";
$master_product_category_table ="master_product_category$lang";
$master_product_table ="master_product";
$master_product_type_125_table ="master_product_type_125$lang";
$master_production_gate_101_table ="master_production_gate_101";
$master_production_gate_table ="master_production_gate";
$master_production_section_table ="master_section$lang";
$master_receipt_gate_table ="master_receipt_gate$lang";
$master_receipt_type_table ="master_receipt_type$lang";
$master_recipe_10_table ="master_recipe_10";
$master_recipe_20_table ="master_recipe_20";
$master_recipe_30_table ="master_recipe_30";
$master_recipe_35_table ="master_recipe_35";
$master_recipe_40_table ="master_recipe_40";
$master_recipe_table ="master_recipe";
$master_rejection_type_table ="master_rejection_type$lang";
$master_rejections_table ="master_rejections";
$master_report_customization_table ="master_report_customization$lang";
$master_report_table ="master_report$lang";
$master_sample_gate_table ="master_sample_gate";
$master_section_table="master_section$lang";
$master_shipment_gate_table ="master_shipment_gate$lang";
$master_shipment_mode_table ="master_shipment_mode$lang";
$master_shipment_term_table ="master_shipment_term$lang";
$master_shipment_type_table ="master_shipment_type$lang";
$master_size_table ="master_size";
$master_stock_category_table ="master_stock_category$lang";
$master_stock_reference_type_table ="master_stock_reference_type";
$master_string_table="master_string";
$master_string_type_table="master_string_type";
$master_tax_table ="master_tax";
$master_tax_type_table ="master_tax_type$lang";
$master_thickness_table ="master_thickness";
$master_uom_table ="master_uom$lang";
$master_uom_type_table ="master_uom_type$lang";
$master_user_table ="master_user";
$master_user_type_table ="master_user_type$lang";
$master_zone_table ="master_zone";
$master_zone_tax_table ="master_zone_tax";
$member_account_details_table ="member_account_details";
$member_commercial_details_table ="member_commercial_details";
$member_contact_details_table ="member_contact_details";
$member_financial_details_table ="member_financial_details";
$member_info_table ="member_info";
$member_preferences_table ="member_preferences";
$master_theme_table = "master_theme";
$material_usage_table = "material_usage";
$member_product_details_table ="member_product_details";
$member_user_relation_table ="member_user_relation";
$message_details_table ="message_details";
$non_working_days_table ="non_working_days";
$operation_machine_cost_101_table ="operation_machine_cost_101";
$operation_machine_cost_106_table ="operation_machine_cost_106";
$operation_machine_relation_101_table ="operation_machine_relation_101";
$operation_machine_relation_106_table ="operation_machine_relation_106";
$order_details_batches_table ="order_details_batches";
$order_details_delivery_table ="order_details_delivery";
$order_details_feedback_table ="order_details_feedback";
$order_details_items_101_table ="order_details_items_101";
$order_details_items_table ="order_details_items";
$order_details_price_table ="order_details_price";
$order_details_shipments_table ="order_details_shipments";
$order_details_table ="order_details";
$order_items_delivery_pur_table ="order_items_delivery_pur";
$order_items_delivery_pur_101_table ="order_items_delivery_pur_101";
$order_items_delivery_pur_106_table ="order_items_delivery_pur_106";
$order_items_delivery_pur_117_table ="order_items_delivery_pur_117";
$order_items_delivery_pur_125_table ="order_items_delivery_pur_125";
$order_items_price_pur_table="order_items_price_pur";
$order_items_price_pur_101_table ="order_items_price_pur_101";
$order_items_price_pur_106_table ="order_items_price_pur_106";
$order_items_price_pur_117_table ="order_items_price_pur_117";
$order_items_price_pur_125_table ="order_items_price_pur_125";
$order_items_pur_101_table ="order_items_pur_101";
$order_items_pur_106_table ="order_items_pur_106";
$order_items_pur_117_table ="order_items_pur_117";
$order_items_pur_125_table ="order_items_pur_125";
$order_items_pur_table ="order_items_pur";
$order_material_101_table ="order_material_101";
$order_material_106_table ="order_material_106";
$order_material_117_table ="order_material_117";
$order_status_batches_table ="order_status_batches";
$overheads_table ="overheads";
$packing_item_relation_table ="packing_item_relation";
$prd_106_order_details_table ="prd_106_order_details";
$prd_106_sales_order_relation_table ="prd_106_sales_order_relation";
$prd_batch_planning_table ="prd_batch_planning";
$prd_master_operation_table ="prd_master_operation";
$prd_operation_capacity_table ="prd_operation_capacity";
$prd_operation_cost_table ="prd_operation_cost";
$prd_operation_gate_sequence_table ="prd_operation_gate_sequence";
$prd_product_operation_relation_table ="prd_product_operation_relation";
$prd_status_operation_costing_table ="prd_status_operation_costing";
$process_recipe_relation_10_table ="process_recipe_relation_10";
$process_recipe_relation_20_table ="process_recipe_relation_20";
$process_recipe_relation_30_table ="process_recipe_relation_30";
$process_recipe_relation_35_table ="process_recipe_relation_35";
$process_recipe_relation_40_table ="process_recipe_relation_40";
$process_recipe_relation_table ="process_recipe_relation";
$product_process_relation_table ="product_process_relation";
$product_reorder_level_101_table ="product_reorder_level_101";
$product_reorder_level_106_table ="product_reorder_level_106";
$product_reorder_level_117_table ="product_reorder_level_117";
$product_reorder_level_table ="product_reorder_level";
$product_section_relation_117_table ="product_section_relation_117";
$product_value_table="product_value";
$product_value_101_table ="product_value_101";
$product_value_106_table ="product_value_106";
$product_value_117_table ="product_value_117";
$product_grade_relation_table="product_grade_relation";
$production_gate_sequence_106_table ="production_gate_sequence_106";
$production_gate_relation_table="production_gate_relation";
$purchase_sales_relation_table ="purchase_sales_relation";
$purchase_sales_relation_101_table ="purchase_sales_relation_101";
$purchase_sales_relation_106_table ="purchase_sales_relation_106";
$purchase_sales_relation_117_table ="purchase_sales_relation_117";
$purchase_sales_relation_125_table ="purchase_sales_relation_125";
$receipt_details_101_table ="receipt_details_101";
$receipt_details_106_table ="receipt_details_106";
$receipt_details_117_table ="receipt_details_117";
$receipt_details_125_table ="receipt_details_125";
$receipt_details_table ="receipt_details";
$receipt_item_details_101_table ="receipt_item_details_101";
$receipt_item_details_106_table ="receipt_item_details_106";
$receipt_item_details_117_table ="receipt_item_details_117";
$receipt_item_details_125_table ="receipt_item_details_125";
$receipt_item_details_table ="receipt_item_details";
$receipt_item_price_101_table ="receipt_item_price_101";
$receipt_item_price_106_table ="receipt_item_price_106";
$receipt_item_price_117_table ="receipt_item_price_117";
$receipt_item_price_125_table ="receipt_item_price_125";
$receipt_item_price_table="receipt_item_price";
$receipt_status_101_table ="receipt_status_101";
$receipt_status_106_table ="receipt_status_106";
$receipt_status_117_table ="receipt_status_117";
$receipt_status_125_table ="receipt_status_125";
$receipt_status_table="receipt_status";
$recipe_chemical_relation_10_table ="recipe_chemical_relation_10";
$recipe_chemical_relation_20_table ="recipe_chemical_relation_20";
$recipe_chemical_relation_30_table ="recipe_chemical_relation_30";
$recipe_chemical_relation_35_table ="recipe_chemical_relation_35";
$recipe_chemical_relation_40_table ="recipe_chemical_relation_40";
$recipe_chemical_relation_table ="recipe_chemical_relation";
$recipe_time_10_table ="recipe_time_10";
$recipe_time_20_table ="recipe_time_20";
$recipe_time_30_table ="recipe_time_30";
$recipe_time_35_table ="recipe_time_35";
$recipe_time_40_table ="recipe_time_40";
$recipe_time_table ="recipe_time";
$rejection_details_101_table ="rejection_details_101";
$rejection_details_106_table ="rejection_details_106";
$rejection_details_117_table ="rejection_details_117";
$rejection_details_table="rejection_details";
$relationships_table ="relationships";
$report_customization_table ="report_customization$lang";
$sal_order_allocation_table="sal_order_allocation";
$sal_order_allocation_101_table="sal_order_allocation_101";
$sal_order_allocation_117_table="sal_order_allocation_117";
$sample_details_table ="sample_details";
$sample_product_details_table ="sample_product_details";
$sample_status_table ="sample_status";
$schedule_table ="schedule";
$shipment_details_table ="shipment_details";
$shipment_items_price_table ="shipment_items_price";
$shipment_items_table ="shipment_items";
$shipment_packing_table ="shipment_packing";
$shipment_pack_stock_table="shipment_pack_stock";
$shipment_status_table ="shipment_status";
$stk_details_meta_101_table ="stk_details_meta_101";
$stk_details_meta_106_table ="stk_details_meta_106";
$stk_details_meta_117_table ="stk_details_meta_117";
$stk_details_meta_125_table ="stk_details_meta_125";
$stk_details_meta_table="stk_details_meta";
$stk_meta_product_balance_101_table="stk_meta_product_balance_101";
$stk_meta_product_balance_117_table="stk_meta_product_balance_117";
$stk_physical_101_table ="stk_physical_101";
$stk_physical_106_table ="stk_physical_106";
$stk_physical_117_table ="stk_physical_117";
$stk_physical_125_table ="stk_physical_125";
$stk_physical_products_101_table ="stk_physical_products_101";
$stk_physical_products_106_table ="stk_physical_products_106";
$stk_physical_products_117_table ="stk_physical_products_117";
$stk_physical_products_125_table ="stk_physical_products_125";
$stk_physical_products_table ="stk_physical_products";
$stk_physical_table ="stk_physical";
$stock_details_101_table ="stock_details_101";
$stock_details_106_table ="stock_details_106";
$stock_details_117_table ="stock_details_117";
$stock_details_125_table ="stock_details_125";
$stock_details_table ="stock_details";
$stock_price_table ="stock_price";
$stock_transaction_detail_101_table ="stock_transaction_detail_101";
$stock_transaction_detail_106_table ="stock_transaction_detail_106";
$stock_transaction_detail_117_table ="stock_transaction_detail_117";
$stock_transaction_detail_125_table ="stock_transaction_detail_125";
$stock_transaction_detail_table ="stock_transaction_detail";
$stock_type_table ="stock_type$lang";
$sys_master_module_table ="sys_master_module";
$sys_master_filter_table ="sys_master_filter";
$sys_master_selection_101_table ="sys_master_selection_101";
$sys_report_filter_table ="sys_report_filter";
$sys_report_customization_table="sys_report_customization";
$sys_filter_customization_table="sys_filter_customization";
$user_info_table ="user_info";
$user_login_details_table="user_login_details";
$user_preferences_table ="user_preferences";
$user_type_privilege_table ="user_type_privilege";
$weblog_table ="weblog";
$stk_source_table ="stk_source";
$sal_meta_order_issues_table="sal_meta_order_issues";
$sal_meta_order_shipments_table="sal_meta_order_shipments";
$transaction_value_table="transaction_value";


//VIEWS
$batch_details_view="batch_details_view$lang";
$batch_production_planning_view ="batch_production_planning_view$lang";
$batch_status_details_view ="batch_status_details_view$lang";
$master_process_list_view="master_process_list_view$lang";
$material_usage_view="material_usage_view$lang";
$order_issues_view="order_issues_view$lang";
$purchase_order_125_report_view="purchase_order_125_report_view$lang";
$purchase_rawmaterial_grade_report_view="purchase_rawmaterial_grade_report_view$lang";
$receipt_report_125_view="receipt_report_125_view$lang";
$receipt_details_101_106_view ="receipt_details_101_106_view$lang";
$receipt_details_101_view ="receipt_details_101_view$lang";
$receipt_details_106_view="receipt_details_106_view$lang";
$receipt_details_117_view="receipt_details_117_view$lang";
$receipt_details_125_view="receipt_details_125_view$lang";
$shipment_details_view="shipment_details_view$lang";
$stock_details_125_report_view="stock_details_125_report_view$lang";


//FUNCTIONS
$add_overhead_106_func="add_overhead_106";
$bill_item_value_101_func="bill_item_value_101";
$bill_item_value_106_func="bill_item_value_106";
$bill_item_value_117_func="bill_item_value_117";
$bill_receipt_value_101_func="bill_receipt_value_101";
$bill_receipt_value_106_func="bill_receipt_value_106";
$bill_receipt_value_117_func="bill_receipt_value_117";
$bill_tax_amount_101_func="bill_tax_amount_101";
$bill_tax_amount_106_func="bill_tax_amount_106";
$bill_tax_amount_117_func="bill_tax_amount_117";
$bill_value_101_func="bill_value_101";
$bill_value_106_func="bill_value_106";
$bill_value_117_func="bill_value_117";
$final_bill_value_101_func="final_bill_value_101";
$final_bill_value_106_func="final_bill_value_106";
$final_bill_value_117_func="final_bill_value_117";
$final_invoice_value_106_func="final_invoice_value_106";
$inv_item_tax_amount_106_func="inv_item_tax_amount_106";
$invoice_item_value_106_func="invoice_item_value_106";
$invoice_shipment_value_106_func="invoice_shipment_value_106";
$invoice_tax_amount_106_func="invoice_tax_amount_106";
$invoice_value_106_func="invoice_value_106";
$item_tax_amount_101_func="item_tax_amount_101";
$item_tax_amount_106_func="item_tax_amount_106";
$item_tax_amount_117_func="item_tax_amount_117";
$prd_plan_func="prd_plan";
$sd_account_update_func="sd_account_update";
$set_stock_source_func="set_stock_source";
$std_reference_check_func="std_reference_check";
$stk_active_func="stk_active";
$stk_balance_101_func="stk_balance_101";
$stk_balance_101d_func="stk_balance_101d";
$stk_balance_106_func="stk_balance_106";
$stk_balance_106d_func="stk_balance_106d";
$stk_balance_117_func="stk_balance_117";
$stk_balance_117d_func="stk_balance_117d";
$stk_balance_125_func="stk_balance_125";
$stk_balance_125d_func="stk_balance_125d";
$stk_meta_101_func="stk_meta_101";
$stk_meta_106_func="stk_meta_106";
$stk_meta_117_func="stk_meta_117";
$stk_meta_125_func="stk_meta_125";
$taxed_bill_item_value_101_func="taxed_bill_item_value_101";
$taxed_bill_item_value_106_func="taxed_bill_item_value_106";
$taxed_bill_item_value_117_func="taxed_bill_item_value_117";
$taxed_invoice_item_value_106_func="taxed_invoice_item_value_106";
$drop_member_func="drop_member";
$format_number_func="format_number";
$getchemicalcost_func="getchemicalcost";
$getissuedetailsarea_func="getissuedetailsarea";
$getissuedetailsarea_func="getissuedetailsarea";
$getissuedetailspcs_func="getissuedetailspcs";
$getissuedetailspcs_func="getissuedetailspcs";
$getmachinerycost_func="getmachinerycost";
$getshipdetailsarea_func="getshipdetailsarea";
$getshipdetailspcs_func="getshipdetailspcs";
$retotal_func="retotal";
$uom_id_chk_func="uom_id_chk";
$user_preferences_default_func="user_preferences_default";
$sal_meta_order_shipments="sal_meta_order_shipments";
$style_id_sequence="sys_seq_sms_style_id";
$delivery_id_sequence="delivery_id_seq";
$master_thickness_sequence_106="sys_seq_mt106_thickness_id";
$sys_master_thickness_106_table="sys_master_thickness_106";
$sys_master_size_106_table="sys_master_size_106";
$sys_master_selection_106_table="sys_master_selection_106";
$sys_master_swatch_106_table="sys_master_swatch_106";
$sys_master_style_table="sys_master_style";
$shipment_receipt_relation="shipment_receipt_relation";
$master_department_table="master_department";
$master_machine_table="master_machine";

//SEQUENCE
$acc_seq_bde_bill_id_seq="acc_seq_bde_bill_id";
$acc_seq_bip_payment_id_seq="acc_seq_bip_payment_id";
$acc_seq_ide_invoice_id_seq="acc_seq_ide_invoice_id";
$acc_seq_ide_invoice_no_seq="acc_seq_ide_invoice_no";
$acc_seq_ipd_payment_id_seq="acc_seq_ipd_payment_id";
$batch_id_seq_seq="batch_id_seq";
$bcd_batch_chemical_details_id_seq="bcd_batch_chemical_details_id_seq";
$bpd_batch_process_details_id_seq="bpd_batch_process_details_id_seq";
$delivery_id_seq="delivery_id_seq";
$grade_group_id_seq="grade_group_id_seq";
$ide_invoice_id_seq="ide_invoice_id_seq";
$mac_account_id_seq="mac_account_id_seq";
$mb_brand_id_seq="mb_brand_id_seq";
$mgr_grade_id_seq="mgr_grade_id_seq";
$mo_origin_id_seq="mo_origin_id_seq";
$mpo101_process_id_seq="mpo101_process_id_seq";
$mpo106_process_id_seq="mpo106_process_id_seq";
$mpr117_chemical_id_seq="mpr117_chemical_id_seq";
$mpr118_machine_id_seq="mpr118_machine_id_seq";
$mpr125_product_id_seq="mpr125_product_id_seq";
$mpr_process_id_seq="mpr_process_id_seq";
$mr_rejection_id_seq="mr_rejection_id";
$mre101_recipe_id_seq="mre101_recipe_id_seq";
$mre106_recipe_id_seq="mre106_recipe_id_seq";
$mre_recipe_id_seq="mre_recipe_id_seq";
$mrt_receipt_type_id_seq="mrt_receipt_type_id_seq";
$ms_size_id_seq="ms_size_id";
$msc_stock_category_id_seq="msc_stock_category_id_seq";
$msrt_stock_reference_type_id_seq="msrt_stock_reference_type_id_seq";
$mst_shipment_type_id_seq="mst_shipment_type_id_seq";
$mt_thickness_id_seq="mt_thickness_id";
$mta_tax_id_seq="mta_tax_id_seq";
$mzo_zone_id_seq="mzo_zone_id_seq";
$oide101_delivery_id_seq="oide101_delivery_id_seq";
$oide106_delivery_id_seq="oide106_delivery_id_seq";
$oide117_delivery_id_seq="oide117_delivery_id_seq";
$oide125_delivery_id_seq="oide125_delivery_id_seq";
$omr101_om_relation_id_seq="omr101_om_relation_id_seq";
$omr106_om_relation_id_seq="omr106_om_relation_id_seq";
$order_id_seq="order_id_seq";
$osb_status_id_seq="osb_status_id_seq";
$prd_mop_operation_id_seq="prd_mop_operation_id_seq";
$prr_pr_relation_id_seq="prr_pr_relation_id_seq";
$rde_receipt_id_seq="rde_receipt_id_seq";
$relationship_id_seq="relationship_id_seq";
$rid_receipt_item_id_seq="rid_receipt_item_id_seq";
$rs_101_status_id_seq="rs_101_status_id_seq";
$rs_106_status_id_seq="rs_106_status_id_seq";
$rs_117_status_id_seq="rs_117_status_id_seq";
$rs_125_status_id_seq="rs_125_status_id_seq";
$rs__status_id_seq="rs__status_id_seq";
$rti_recipe_time_id_seq="rti_recipe_time_id_seq";
$sample_id_seq="sample_id_seq";
$sde_stock_id_seq="sde_stock_id_seq";
$shipment_id_seq="shipment_id_seq";
$shipment_item_id_seq="shipment_item_id_seq";
$sp_pack_id_seq="sp_pack_id_seq";
$ss_status_id_seq="ss_status_id_seq";
$std_transaction_id_seq="std_transaction_id_seq";
$stk_seq_sp_stock_physical_id="stk_seq_sp_stock_physical_id";
$internal_shipment_no="internal_shipment_no";
$machine_type_id_seq="machine_type_id_seq";
$master_city_city_id_seq="master_city_city_id_seq";
$master_column_map_column_id_seq="master_column_map_column_id_seq";
$master_machine_id_seq="master_machine_id_seq";
$master_member_member_catego_seq="master_member_member_catego_seq";
$master_member_member_id_seq="master_member_member_id_seq";
$master_prefer_preference_id_seq="master_prefer_preference_id_seq";
$master_privile_privilege_id_seq="master_privile_privilege_id_seq";
$master_produc_product_categ_seq="master_produc_product_categ_seq";
$mr_report_id_seq="mr_report_id_seq";
$master_user_user_id_seq="master_user_user_id_seq";
$mct_chemical_type_id_seq="mct_chemical_type_id_seq";
$member_commer_commercial_de_seq="member_commer_commercial_de_seq";
$member_contact_d_contact_id_seq="member_contact_d_contact_id_seq";
$member_financ_financial_det_seq="member_financ_financial_det_seq";
$member_produc_product_detai_seq="member_produc_product_detai_seq";
$member_user_r_mu_relation_i_seq="member_user_r_mu_relation_i_seq";
$message_details_message_id_seq="message_details_message_id_seq";
$mpm_payment_mode_id_seq="mpm_payment_mode_id_seq";
$mpt_125_product_id_seq="mpt_125_product_id_seq";
$reorder_level_id_seq="reorder_level_id_seq";
$schedule_schedule_id_seq="schedule_schedule_id_seq";
$smf_filter_id_seq="smf_filter_id_seq";
$sso_source_id_seq="sso_source_id_seq";
$sys_report_cus_id_seq="sys_report_cus_id_seq";
$sys_seq_ms106_selection_id_seq="sys_seq_ms106_selection_id";
$sys_seq_ms106_size_id_seq="sys_seq_ms106_size_id";
$sys_seq_ms106_swatch_id_seq="sys_seq_ms106_swatch_id";
$sys_seq_mt106_thickness_id_seq="sys_seq_mt106_thickness_id";
$sys_seq_sms_style_id_seq="sys_seq_sms_style_id";
$machine_type_id_seq="machine_type_id_seq";
$part_id_seq="part_id_seq";
$material_usage_id_seq="material_usage_id_seq";

// $login_id=$_SESSION["glogin_id"];
// if($login_id)
// 	{
// 	$db->query="select * from $user_login_details_table where login_id=$login_id and active_status='t'";
// 	$db->runQuery();
// 	$session_exist_array=$db->returnArrays();
// 	if(!$session_exist_array)
// 		{
// 		header("Location:../users/logout.php");
//                 exit;
// 		}
// 	}

	

?>